import {Component, ViewChild} from '@angular/core';

import {NavParams, Tabs} from 'ionic-angular';

import { HomePage } from '../home/home';
import {SubjectPage} from "../subject/subject";
import {AccountPage} from "../account/account";

@Component({
  templateUrl: 'tabs.html'
})
export class TabsPage {
  tab1Root: any = HomePage;
  tab2Root: any = SubjectPage;
  tab3Root: any = AccountPage;
  mySelectedIndex: number;
  @ViewChild('mainTabs') tabs:Tabs;

  constructor(navParams: NavParams) {
    this.mySelectedIndex = navParams.data.tabIndex || 0;
  }

}
